package main

func main() {

}
func slowestKey(releaseTimes []int, keysPressed string) (res byte) {
	before := 0
	time := 0
	max := 0
	for i := range keysPressed {
		time = releaseTimes[i] - before

		if time > max {
			res = keysPressed[i]
			max = time
		} else if time == max {
			if keysPressed[i] > res {
				res = keysPressed[i]
			}
		}

		before = releaseTimes[i]
	}

	return
}
